/**
 * @author:曹仁道
 * @描述：
 * 2016年9月12日 下午5:58:58
 */
//<script type="text/javascript" data-main="static/mainLoad" src="http://127.0.0.1:8081/km-gradms-core-server/static/libs/requireJS/requireJS.js"></script>
/*入口脚本*/
require.config({
    baseUrl: "http://127.0.0.1:8081/km-gradms-core-server/static/",
    paths: {
        jquery: "libs/jquery/jquery-2.2.4.min",
        host:"js/zfes/zfes.host",
        pubsub:"libs/pubsub/pubsub",
        zfesApp:"js/zfes/zfes.app",
        bootstrap:"libs/bootstrap/js/bootstrap.min",
        bootstrapTable:"libs/bootstrap-table/bootstrap-table.min",
        bootstrapTableZHCN:"libs/bootstrap-table/locale/bootstrap-table-zh-CN.min",
        jqueryCookie:"libs/jquery/js.cookie",
        store:"libs/store/store.min",
        toastr:"libs/toastr/toastr.min",
        easyui:"libs/easyui/jquery.easyui.min",
        easyloader:"libs/easyui/easyloader",
        easyuiLang:"libs/easyui/locale/easyui-lang-zh_CN",
        jqueryUI:"libs/jquery-ui/jquery-ui.min",
        pace:"libs/pace/pace.min",
        zfesCore:"js/zfes/zfes.core",
        zfesSwal:"js/zfes/zfes.alert.swal",
        zfesAjax:"js/zfes/zfes.ajax",
				zfesUtil:"js/zfes/zfes.util",
				raphael:"libs/raphael/raphael.min",
				sparkline:"libs/sparkline/jquery.sparkline.min",
				jvectormap:"libs/jquery-jvectormap/jquery-jvectormap-2.0.3.min",
				jvectormapWorld:"libs/jquery-jvectormap/jquery-jvectormap-world-mill-en",
				knob:"libs/knob/jquery.knob.min",
				moment:"libs/moment/moment.min",
				daterangepicker:"libs/daterangepicker/daterangepicker",
				datepicker:"libs/datepicker/bootstrap-datepicker",
				slimscroll:"libs/slimscroll/jquery.slimscroll.min",
				easypiechart:"libs/jquery-easypiechart/easypiechart.min",
				jqueryEasypiechart:"libs/jquery-easypiechart/jquery.easypiechart.min",
				fastclick:"libs/fastclick/fastclick",
				metisMenu:"libs/metisMenu/jquery.metisMenu",
				layer:"libs/layer/layer.dev",
				zfesLayer:"js/zfes/zfes.layer.editDialog",
				zfesBootstrapTable:"js/zfes/zfes.bootstrap.table",
				layerExt:"libs/layer/layer.ext",
				chosen:"libs/chosen/chosen.jquery",
				adminletApp:"libs/adminlet/dist/js/app.min",
				zhesAdminletNavmenu:"js/zfes/zhes.adminlet.navmenu",
				sweetalert:"libs/sweetalert/sweetalert.min",
				vue:"libs/vue/vue.min",
				validate:"libs/jquery-validation/jquery.validate.min",
				validationMessages:"libs/jquery-validation/localization/messages_zh.min",
				kindeditor:"libs/kindeditor/kindeditor",
				zfesStorage:"js/zfes/zfes.storage",
				zfesVue:"js/zfes/zfes.vue",
				zfesTree:"js/zfes/zfes.tree"
    },
    waitSeconds:100,
    map:{
    	'*':{
    		'css':"libs/requireJS/require-css.min"
    	}
    },
    shim:{
    	bootstrap:{
    		deps:["css!libs/bootstrap/css/bootstrap.min.css",
    		      "css!libs/font-awesome/css/font-awesome.min.css",
    		      "css!libs/toastr/toastr.min.css",
    		      "css!libs/animate/animate.min"
    		      ]
    	},
    	bootstrapTable:{
    		deps:["bootstrap","css!libs/bootstrap-table/bootstrap-table.min.css"
    		      ]
    	},
    	sweetalert:{
    		deps:["css!libs/sweetalert/sweetalert.css"]
    	},
    	layer:{
    		deps:["css!libs/layer/layer.dev.css"]
    	},
    	layerExt:{
    		deps:["css!libs/layer/layer.ext"]
    	},
    	adminletApp:{
    		deps:["css!libs/adminlet/dist/css/AdminLTE.dev.css",
    		      "css!libs/adminlet/dist/css/skins/_all-skins.min.css"]
    	},
    	zfesCore:{
    		deps:["css!libs/_zfes/zfes.css","css!libs/icheck/skins/all.css"]
    	},
    	morris:{
    		deps:["css!libs/morris/morris.css"]
    	},
    	jvectormap:{
    		deps:["css!libs/jquery-jvectormap/jquery-jvectormap-2.0.3.css"]
    	},
    	datepicker:{
    		deps:["css!libs/datepicker/datepicker3.css"]
    	},
    	daterangepicker:{
    		deps:["css!libs/daterangepicker/daterangepicker-bs3.css"]
    	},
    	chosen:{
    		deps:["css!libs/chosen/chosen.css"] 
    	},
    	easyui:{
    		deps:["css!libs/easyui/themes/bootstrap/easyui.css","css!libs/easyui/themes/icon.css"]
    	},
    	
    }
});
//然后动态依赖载入其他文件
require(["jquery","host","pubsub","zfesApp","bootstrap","bootstrapTable","bootstrapTableZHCN","easyui","chosen","jqueryCookie","store","toastr","easyloader","easyuiLang","jqueryUI","pace","zfesCore",
         "zfesSwal","zfesAjax","zfesUtil","raphael","sparkline","jvectormap","jvectormapWorld","knob","moment","daterangepicker","datepicker","slimscroll",
         "easypiechart","jqueryEasypiechart","fastclick","metisMenu","layer","zfesLayer","zfesBootstrapTable","layerExt","chosen","adminletApp","zhesAdminletNavmenu","sweetalert",
         "vue","validate","validationMessages","kindeditor","zfesStorage","zfesVue","zfesTree"], function(require) {
  				console.log("文件载入成功，可以做操作");
  				$.widget.bridge('uibutton', $.ui.button);
});